apply rules of exponents